package com.atoffice.common.config.exception;

import lombok.Data;

@Data
public class CustomException extends RuntimeException{
    private Integer code ;//状态码
    private String msg ;//描述信息

    public CustomException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "CustomException{" +
                "code=" + code +
                ", message='" + this.getMessage() + '\'' +
                '}';
    }
}
